package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.AccountFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

@Component
public class AccountFallback implements AccountFeign {
    @Override
    public ResultModel save(AccountSaveRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AccountResponse> auth(AccountAuthRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AccountResponse> getCompanyIdDefaultIfNull(AccountCompanyIdRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AccountResponse> getCompanyId(AccountCompanyIdRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AccountResponse> getCompanyKeyDefaultIfNull(AccountCompanyKeyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AccountResponse> getByAppId(AccountAppIdRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AccountResponse> getByAppId2(AccountAppIdRequest request) {
        return ResultModel.faultTolerant();
    }
}
